# $Id: PKGBUILD 66212 2012-02-23 03:25:05Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Jeremie Dimino <jeremie@dimino.org>
# Contributor: bender02 at gmx dot com

pkgname=lrzsz
pkgver=0.12.20
pkgrel=4
pkgdesc="xmodem, ymodem and zmodem file transfer protocols"
url="http://www.ohse.de/uwe/software/lrzsz.html"
license=('GPL2')
arch=('i686' 'x86_64')
source=(http://www.ohse.de/uwe/releases/$pkgname-$pkgver.tar.gz
	lrzsz.patch)
md5sums=('b5ce6a74abc9b9eb2af94dffdfd372a4'
         '332f6e4af9fe0266efecf9d334c4d3db')

build() {
  cd $srcdir/$pkgname-$pkgver
  patch -Np1 -i ../lrzsz.patch
  # Rename file so they can be used with minicom
  ./configure --prefix=/usr --mandir=/usr/share/man \
	--program-transform-name=s/l//
  make -j1
  make -j1 DESTDIR=$pkgdir install
}
